package save;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

/**
 * es日志实体类
 * @author fang
 * @version 0.1
 */
@Document(indexName = "cloudbasic", type = "log")
//@Mapping(mappingPath = "productIndex.json") // 解决IK分词不能使用问题
public class LogDocument implements Serializable {
	private static final long serialVersionUID = -8197667443762173653L;
	@Id
    private String id;
	//系统菜単功能
	@Field(type = FieldType.Keyword)
    private String sysMenuFunction;
	@Field(type = FieldType.Keyword)
    private String operationType;
    //关联查询号
	@Field(type = FieldType.Keyword)
    private String identification;
    //操作内容
	@Field(type = FieldType.Keyword)
    private String operatorContent;
    //操作结果 /成功或者失败
	@Field(type = FieldType.Keyword)
    private String operatorResult;
    //操作人
	@Field(type = FieldType.Keyword)
    private String operator;
    //操作时间
	@Field(type = FieldType.Date)
    private Date operationTime;
    
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	public String getSysMenuFunction() {
		return sysMenuFunction;
	}
	public void setSysMenuFunction(String sysMenuFunction) {
		this.sysMenuFunction = sysMenuFunction;
	}
	public String getOperationType() {
		return operationType;
	}
	public void setOperationType(String operationType) {
		this.operationType = operationType;
	}
	public String getIdentification() {
		return identification;
	}
	public void setIdentification(String identification) {
		this.identification = identification;
	}
	public String getOperatorContent() {
		return operatorContent;
	}
	public void setOperatorContent(String operatorContent) {
		this.operatorContent = operatorContent;
	}
	public String getOperatorResult() {
		return operatorResult;
	}
	public void setOperatorResult(String operatorResult) {
		this.operatorResult = operatorResult;
	}
	public String getOperator() {
		return operator;
	}
	public void setOperator(String operator) {
		this.operator = operator;
	}
	public Date getOperationTime() {
		return operationTime;
	}
	public void setOperationTime(Date operationTime) {
		this.operationTime = operationTime;
	}
}
